<script setup lang="ts">
import {ref} from "vue"

//ref函数，用于创建响应式数据
let num=ref(1)
</script>

<template>
  <div @click="num++">{{ num }}</div>
</template>

<style scoped>

</style>
